<template>
   <div class="home center">
    <div class="name">{{ item.title }}</div>
    <div class="info">
      <div>发布时间：2002-03-06</div>
    </div>
    <div class="text" v-html="item.text"></div>
    <div
      class="attachment"
      v-if="item.attachment != '' && item.attachment != null"
    >
      
    </div>
  </div>
</template>

<script>
import { getProcurementListItem } from "@/api/procurement/list";
export default {
 name: "noticeDetails",
  data() {
    return {
      item: {},
    };
  },
  mounted() {
    getProcurementListItem({ id: this.$route.query.listId }).then((res) => {
      this.item = res.data;
      if (this.item.attachment != "" && this.item.attachment != null) {
        this.item.attachment = this.item.attachment.split(",");
      }
    });
  },
}
</script>

<style>

</style>